import request from "@/utils/request";

// 获取专栏列表
export function getColumnList() {
  return request({
    url: "/school/manager/courseRecommend/getColumnList",
    method: "get",
  });
}
// 获取专栏课程列表
export function courseRecommendList(query) {
  return request({
    url: "/school/manager/courseRecommend/list",
    method: "get",
    params: query,
  });
}
// 专栏排序
export function columnSort(columnIds) {
  return request({
    url: "/school/manager/courseRecommend/columnSort",
    method: "post",
    data:columnIds
  });
}
// 删除专栏
export function columnDel(columnId) {
  return request({
    url: `/school/manager/courseRecommend/deleteColumn/${columnId}`,
    method: "delete",
  });
}
// 保存专栏信息
export function saveColumnInfo(data) {
  return request({
    url: `/school/manager/courseRecommend/saveColumnInfo`,
    method: "post",
    data
  });
}
